package cn.tx.mapper;

import cn.tx.pojo.Member;

import java.util.List;

/**
 * @author Snake Eyes
 * @PROJECT_NAME: health_parent
 * @DESCRIPTION:
 * @USER: 11647
 * @DATE: 2021/9/6 18:03
 * @Email: 1164763541@qq.com
 */
public interface MemberDao {
    //通过手机查找数据
    public Member findByPhone(String phone);

    void save(Member member);
//
    Member selectByCondition(Integer memberId);

    //根据id查询会员
    Member findById (int member);

    //根据id查询会员
    Member findByTelephone (String phone);

    //编辑会员方法
    void edit(Member member);
    //通过月查找会员信息
    List findMemberCountByMonth(String month);

    int findAllMember();

    Integer findMemberWeek(String week);
    /**
     * @author     :11647
     * @date       ：Created in 2021/9/13  17:53
     * @description：(描述) 查找指定日期之后的会员数量
     * @modified By：11647
     * @version:
     */
    Integer findSpecDateNum(String date);
}
